const mongoose = require("./mongoose")
let Schema = mongoose.Schema;
let userSchema = new Schema({
  username: String,
  password: String,
  user_img: { type: String, default: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=249589786,2941481629&fm=26&gp=0.jpg' },
  user_banner: { type: String, default: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.616pic.com%2Fbg_w1180%2F00%2F10%2F96%2F2srzmF7kLj.jpg&refer=http%3A%2F%2Fpic.616pic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1614151217&t=7d86a1c7429a3b5196b70c7bd2a24908' },
  nickname: { type: String, default: '用户' + Date.now() },
  signature:{type: String,default:''}
})


module.exports = mongoose.model("user", userSchema)